package com.hs.sfzy.mapper;

import com.hs.sfzy.entity.Coursetype;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface CoursetypeMapper {

    @Select("select * from coursetype;")
    List<Coursetype> findALl();

    List<Coursetype> page(String name);

    int save(Coursetype coursetype);

    @Delete("delete from coursetype where id = #{id};")
    int deleteById(Integer id);

    int update(Coursetype coursetype);
}
